package com.aspose.cells;

class zcdc {
   private zazw a;
   private int b;
   private byte[] c;
   private zbxz d;

   zcdc(zazw var1) {
      this.a = var1;
   }

   void a(zbxz var1) throws Exception {
      this.d = var1;

      while(true) {
         this.b = var1.a();
         switch(this.b) {
         case 398:
            this.a();
            break;
         case 403:
            return;
         case 411:
            this.b();
         }
      }
   }

   private void a() {
      this.c = this.d.d();
      byte var1 = 0;
      if ((this.c[var1] & 255 & 2) != 0) {
         this.a.b = true;
      }

      var1 = 2;
      this.a.l = new byte[16];
      System.arraycopy(this.c, var1, this.a.l, 0, 16);
      int var2 = var1 + 16;
      this.a.m = new byte[16];
      System.arraycopy(this.c, var2, this.a.m, 0, 16);
      var2 += 16;
      this.a.j = com.aspose.cells.b.a.zc.a(this.c, var2);
      var2 += 4;
      this.a.k = com.aspose.cells.b.a.zc.a(this.c, var2);
      var2 += 4;
      this.a.e = (this.c[var2] & 255 & 1) == 0;
      this.a.g = (this.c[var2] & 255 & 2) != 0;
      var2 += 2;
      this.a.f = com.aspose.cells.b.a.zc.b(this.c, var2);
   }

   static DateTime a(byte[] var0, int var1) {
      short var2 = com.aspose.cells.b.a.zc.b(var0, var1);
      return new DateTime(var2, var0[var1 + 2] & 255, var0[var1 + 3] & 255, var0[var1 + 4] & 255, var0[var1 + 5] & 255, var0[var1 + 6] & 255);
   }

   private void b() throws Exception {
      zazv var1 = new zazv(this.a);
      this.a.a(var1);
      zazr var2 = new zazr();
      var1.b = var2;
      this.c = this.d.d();
      byte var3 = 14;
      var2.b = new byte[16];
      System.arraycopy(this.c, var3, var2.b, 0, 16);
      int var6 = var3 + 16;
      var2.a = a(this.c, var6);
      var6 += 8;
      var2.e = com.aspose.cells.b.a.zc.b(this.c, var6);
      var6 += 2;
      var2.d = com.aspose.cells.b.a.zc.a(this.c, var6);
      var6 += 4;
      var2.c = com.aspose.cells.b.a.zc.a(this.c, var6);
      var6 += 4;
      var2.f = zcch.d(this.c, var6);
      var6 += 4 + (var2.f == null ? 0 : var2.f.length() * 2);
      var2.i = zcch.d(this.c, var6);
      var6 += 4 + (var2.i == null ? 0 : var2.i.length() * 2);
      int var4 = com.aspose.cells.b.a.zc.a(this.c, var6);
      var6 += 4;
      int var5;
      if (var4 > 0) {
         var2.g = new int[var4];

         for(var5 = 0; var5 < var4; ++var5) {
            var2.g[var5] = com.aspose.cells.b.a.zc.e(this.c, var6) & '\uffff';
            var6 += 2;
         }
      }

      var4 = com.aspose.cells.b.a.zc.a(this.c, var6);
      var6 += 4;
      if (var4 > 0) {
         var2.h = new int[var4];

         for(var5 = 0; var5 < var4; ++var5) {
            var2.h[var5] = com.aspose.cells.b.a.zc.a(this.c, var6);
            var6 += 4;
         }
      }

   }
}
